//
//  ViewController.m
//  27-block播放按钮
//
//  Created by dllo on 16/8/19.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "ViewController.h"
#import "PlayView.h"
@interface ViewController ()
@property (nonatomic,strong)PlayView *playView;
@property (weak, nonatomic) IBOutlet UIImageView *imgeView1;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
//    _playView = [[PlayView alloc] initWithFrame:CGRectMake(<#CGFloat x#>, <#CGFloat y#>, <#CGFloat width#>, <#CGFloat height#>)];
//    
//    [self.view addSubview:_playView];
    self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"0"]];
    [_playView play:^(UIButton *play) {
        NSLog(@"播放");
    } pause:^(UIButton *pause) {
        NSLog(@"暂停");
    }];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
